package com.yijdn.common.constant;

import com.yijdn.common.utils.MessageUtils;

/**
 * @author zww
 * @date 2018-03-25 10:48
 * <p>
 * Email 971762302@qq.com
 * <p>
 * Describe:
 */
public enum CodeStatus {
    /**
     * 响应成功
     */
    SUCCESS(200, MessageUtils.getMsg("success")),

    /**
     * 相应失败
     */
    FAILED(500,MessageUtils.getMsg("failed"));

    CodeStatus(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
